package com.fieldchain.ex.fa100.utils.chart.utils.data;

import android.graphics.Color;

/**
 * Created by biyunlong
 * Email: 1225198434@qq.com
 * Data:  2018/10/16
 */
public class KlineIndex {
    public final static String kline="kline";
    public final static String volum="volum";
    public final static String volum1="volum1";
    public final static String zbchart="zbchart";
    public final static String timeChart="timeChart";

    public final static int hight = Color.parseColor("#FFFFFF");
    public final static int m1 = Color.parseColor("#ffcc00");
    public final static int m2 = Color.parseColor("#0090f7");
    public final static int m3 = Color.parseColor("#ffffff");
    public final static int m4 = Color.parseColor("#7F9976");

    public final static int klineIndex=6;
    public static String tags="";


    public static boolean isCandle(){
        return tags.equals(kline);
    }
    public static boolean isBarChart(){
        return tags.equals(volum1)||tags.equals(volum);
    }
    public static boolean isLine(){
        return tags.equals(zbchart)||tags.equals(timeChart);
    }
    public static boolean needTopText(){
        if(tags.equals(zbchart))return false;
        return tags.equals(timeChart)||tags.equals(volum);
    }
}
